package com.example.springbott.wx_bean_heheer.order;


/**
 * @author 1784549954@qq.com
 * @since 2022/11/22 21:40
 */
public class OrderHandle {
    public static HandleOptionBean getHandleOption(Integer state, Integer comment) {
        if (state == 101) {
            return new HandleOptionBean(true, false, true, false, false, false, false, false);

        }
        if (state == 201) {
            return new HandleOptionBean(false, false, false, false, false, true, false, false);
        }
        if (state == 301) {
            return new HandleOptionBean(false, false, false, false, true, false, false, false);

        }
        if (state == 401) {
            if (comment == 0) {
                return new HandleOptionBean(false, true, false, true, false, false, true, true);

            } else {
                return new HandleOptionBean(false, true, false, false, false, false, true, true);

            }
        } else if (state == 203) {
            return new HandleOptionBean(false, true, false, false, false, false, false, false);

        } else if (state == 202) {
            return new HandleOptionBean(false, true, false, false, false, false, false, false);

        } else {
            return new HandleOptionBean(false, false, false, false, false, false, false, false);

        }
    }
}
